<head>
<meta http-equiv='content-type' content='text/html; charset=utf8' />
<title>jsGoo tests</title><link rel='stylesheet' href='main.css' type='text/css' />
<script type='text/javascript' src='jsgoo.js'></script>
<script type='text/javascript'>

function test() { _.$into('main', _test.go([
        { n: 'true test', f: function(){ return true; }, r: true },
        { n: 'false test', f: function(){ return false; }, r: false },
        { n: 'int test', f: function(){ return 123; }, r: 123 },
        { n: 'string test', f: function(){ return "bla"+"bla"; }, r: "blabla" },
        { n: 'should fail', f: function(){ return "bla"+"bla"; }, r: "blabl" },
        { n: 'should NOT failarr', f: function(){ return [ "janko" ]; }, r: [ "janko" ] },
        { n: 'should NOT failobj', f: function(){ return { m: "work" }; }, r: { m: "work" } },
        { n: 'should fail arr', f: function(){ return [ "janko", 123 ]; }, r: [ "branko", 123 ] },
        { n: 'should fail obj', f: function(){ return { m: "work" }; }, r: { m: "sleep" } }
        ])); }
</script>
<body>
<div><a href="index.html">index</a> <a href="#" onclick="test(); return false;">test</a></div>
<p><b>TODO:</b> equality on objects and arrays doesn`t work yet, FIX IT!</p>
<div id="main"></div>
</body>
</html>